import { Test, Login, Register,CarInfo, Notification, Informat, NotFound, LeasingManagement, CarManagers, User, HomePage, Notice, PersonalCenter}  from "../views";
import { CarOutlined, IdcardOutlined, UserOutlined, DollarOutlined, DatabaseOutlined, NotificationOutlined} from '@ant-design/icons'

export const mainRouter = [{
    pathname: '/login',
    component: Login
},{
    pathname: '/404',
    component: NotFound
},{
    pathname: '/register',
    component: Register
},{
    pathname: '/Test',
    component: Test
}]

export const userRouter = [
    {
        pathname: '/user/homepage',
        component: HomePage,
        value: '用户首页',
        key: 'homePage',
        isNav: true
    },{
        pathname: '/user/notice',
        component: Notice,
        value: '订单通知',
        key: 'notice',
        isNav: true
    },{
        pathname: '/user/personal',
        component: PersonalCenter,
        value: '个人中心',
        key: 'personal',
        isNav: true
    }
]

export const adminRouter = [
    {
    pathname: '/admin/carInformation',
    component: CarInfo,
    value: "汽车管理",
    key: 'carInfo',
    icon: CarOutlined,
    isNav: true
},{
    pathname: '/admin/carManagers',
    component: CarManagers,
    value: "汽车管理员",
    icon: IdcardOutlined,
    key: 'carManagers',
    isNav: true
},{
    pathname: '/admin/userInformation',
    component: User,
    value: "用户信息",
    icon: UserOutlined,
    key: 'user',
    isNav: true
},{
    pathname: '/admin/leasingManagement',
    component: LeasingManagement,
    value: '租赁管理',
    icon: DollarOutlined,
    key: 'leasingManagement',
    isNav: true
},{
    pathname: '/admin/dataStatistics',
    component: Informat,
    value: '数据总计',
    icon: DatabaseOutlined,
    key: 'Informat',
    isNav: true
},{
    pathname: '/admin/notification',
    component: Notification,
    value: '订单审核',
    icon: NotificationOutlined,
    key: 'notification',
    isNav: true
}]